﻿@model Core_User
@{
    ViewBag.ParentUrl = "/User/Agent";
    ViewBag.Title = "编辑代理商信息";
}
@section header{
    <style>
        .profile-info-name {
            width: auto;
        }
    </style>
}
@section breadcrumb
{
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="/">首页</a>
        </li>
        <li class="active">@ViewBag.Title</li>
    </ul><!-- .breadcrumb -->
}
<div class="col-sm-12">
    <div class="tabbable">
        <ul class="nav nav-tabs padding-16">
            <li class="active">
                <a data-toggle="tab" href="#edit-basic">
                    <i class="green ace-icon fa fa-pencil-square-o bigger-125"></i>
                    基础信息
                </a>
            </li>
            <li>
                <a data-toggle="tab" href="#agent">
                    <i class="green ace-icon fa fa-exchange bigger-125"></i>
                    代理商信息
                </a>
            </li>
        </ul>

        <form class="form-horizontal" action="/User/EditAgent" method="POST">
            <div class="tab-content profile-edit-tab-content">
                <div id="edit-basic" class="tab-pane in active">
                    <p class="alert alert-warning">
                        新增代理商的密码统一：@ViewBag.Defaultpwd
                    </p>
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 登陆用户： </div>

                                    <div class="profile-info-value">
                                        @if (Model.U_Id > 0)
                                        {
                                            @Model.U_Name
                                            @Html.HiddenFor(o=>o.U_Name)
                                            @Html.HiddenFor(o => o.U_Id)
                                        }
                                        else
                                        {
                                            @Html.TextBoxFor(o => o.U_Name, new { @class = "input-large", placeholder = "用户名" })
                                        }
                                    </div>


                                </div>



                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 真实姓名： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_TureName, new { @class = "input-large", placeholder = "真实姓名" })
                                    </div>
                                </div>


                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 联系电话： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Phone, new { @class = "input-large", placeholder = "联系电话" })
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="col-sm-6">

                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 联系手机： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Tel, new { @class = "input-large", placeholder = "联系手机" })
                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 用户性别： </div>

                                    <div class="profile-info-value">

                                        <label class="inline">
                                            <input name="U_Sex" type="radio" class="ace" value="1" />
                                            <span class="lbl middle"> 先生</span>
                                        </label>

                                        &nbsp; &nbsp; &nbsp;
                                        <label class="inline">
                                            <input name="U_Sex" type="radio" class="ace" value="0" />
                                            <span class="lbl middle"> 女士</span>
                                        </label>
                                    </div>
                                </div>


                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 电子邮件： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Email, new { @class = "input-large", placeholder = "电子邮件" })
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="space-4"></div>

                </div>
                <div id="agent" class="tab-pane">

                    <div class="row">
                        <div class="col-xs-6">

                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 代理商名称： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_LinkName, new { @class = "input-large", placeholder = "代理商名称" })
                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 代理商类型： </div>

                                    <div class="profile-info-value">
                                        <label class="inline">
                                            <input name="U_Role" type="radio" class="ace" value="1" />
                                            <span class="lbl middle">  中间代理商</span>
                                        </label>

                                        &nbsp; &nbsp; &nbsp;
                                        <label class="inline">
                                            <input name="U_Role" type="radio" class="ace" value="2" />
                                            <span class="lbl middle"> 终端销售商</span>
                                        </label>

                                    </div>
                                </div>



                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 联系地址： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Address, new { @class = "input-large", placeholder = "联系地址" })
                                    </div>
                                </div>

                            </div> 

                        </div>


                        <div class="col-sm-6">

                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 联系传真： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Fax, new { @class = "input-large", placeholder = "联系传真" })
                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 代理商类型： </div>

                                    <div class="profile-info-value">
                                        <label class="inline">
                                            <input name="U_MoneyType" type="radio" class="ace" value="0" />
                                            <span class="lbl middle"> 统一结算（次数）</span>
                                        </label>

                                        &nbsp; &nbsp; &nbsp;
                                        <label class="inline">
                                            <input name="U_MoneyType" type="radio" class="ace" value="1" />
                                            <span class="lbl middle"> 独立产品结算</span>
                                        </label>

                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 邮 编： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Email, new { @class = "input-large", placeholder = "邮 编：" })
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="space-4"></div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit" id="btnSubmit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        修改并保存
                    </button>

                    &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
                </div>
            </div>
            <div class="hr hr-24"></div>
        </form>
    </div>

</div><!-- /.span -->